//
//  CompostViewController.h
//  OrderSeat
//
//  Created by 王威 on 14-1-6.
//  Copyright (c) 2014年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ComposeDataSource;
@interface ComposeViewController : BaseViewController<UITextViewDelegate>

@property (strong, nonatomic) IBOutlet UITextView *commentsTV;
@property (strong, nonatomic) IBOutlet UIButton *submitBtn;

@property (strong, nonatomic) NSString *pid;
@property (assign, nonatomic) CommentsType type;
@property (strong, nonatomic) ComposeDataSource *dataSource;
@property (strong, nonatomic) BaseViewController *parentVC;

- (id)initWithId:(NSString *)pid forType:(CommentsType)type;

@end

@interface ComposeDataSource : BaseDataSource

@property (strong, nonatomic) ComposeViewController *viewController;

- (void)composeWithText:(NSString *)text andType:(CommentsType)type;

@end
